<?php

namespace app\api\controller;


use app\api\lists\game\SoftwareLists;
use app\api\logic\SoftwareLogic;

/**
 * 软件管理
 * Class SoftwareController
 * @package app\api\controller
 */
class SoftwareController extends BaseApiController
{

    public array $notNeedLogin = [];


    /**
     * @notes 软件列表
     * @return \think\response\Json
     * @author 段誉
     * @date 2024/8/1 15:30
     */
    public function lists()
    {
        return $this->dataLists(new SoftwareLists());
    }


    /**
     * @notes 软件详情
     * @return \think\response\Json
     * @author 段誉
     * @date 2022/9/20 17:09
     */
    public function detail()
    {
        $id = $this->request->get('id/d');
        $result = SoftwareLogic::detail($id);
        return $this->data($result);
    }



}